import Mock from 'mockjs';
import cardData from './cardData.json';
import createData from './createData.json';
import joinData from './joinData.json';
import courseData from './courseData.json';
import detail from '../Detail/detail.json';
Mock.mock(
    '/mock/trainingCenter/plans/search/findByUserId?access_token=4a798935-9bba-40d6-851f-592d3874ea54&pageSize=20&pageNum=0&type=system',
    () => {
        return {
            code: 200,
            data: cardData,
        };
    }
);
Mock.mock(
    '/mock/trainingCenter/plans/search/findByUserId?myListCategory=my_create&access_token=4a798935-9bba-40d6-851f-592d3874ea54&pageSize=20&pageNum=0&type=system',
    () => {
        return {
            code: 200,
            data: createData,
        };
    }
);
Mock.mock(
    '/mock/trainingCenter/plans/search/findByUserId?myListCategory=my_join&access_token=4a798935-9bba-40d6-851f-592d3874ea54&pageSize=20&pageNum=0&type=system',
    () => {
        return {
            code: 200,
            data: joinData,
        };
    }
);
Mock.mock(
    '/mock/trainingCenter/plans/search/findByUserId?myListCategory=my_course&access_token=4a798935-9bba-40d6-851f-592d3874ea54&pageSize=20&pageNum=0&type=system',
    () => {
        return {
            code: 200,
            data: [],
        };
    }
);
Mock.mock('/mock/detail/training?id=ff8080817b0b59bb017b16a69f2d4bae', () => {
    return {
        code: 200,
        data: [detail],
    };
});
